<template>
  <div>
    <Contents>
      <Popularity :popularity="popularityList"></Popularity>
      </Contents>
  </div>
</template>

<script>
import Contents from "../components/content/contents";
import Popularity from "../components/popularity/popularity";

export default {
  components: {
    Contents,
    Popularity
  },
  data() {
    return {
      popularityList: [],
    };
  },
  mounted() {
    //商品数据
    this.$Api.required().then((res) => {
      console.log(res.data.data);
      this.popularityList = res.data.data;
    });
  },
};
</script>

<style>
</style>